<?php
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'site-support-form',
            'enableAjaxValidation' => false,
        ));
?>
<div class="block">
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        Fields with <span class="required"><strong>*</strong></span> are required.
    </div>

    <?php echo $form->errorSummary($model); ?>

    <div class="input_group">
        <?php echo $form->labelEx($model, 'support_support_category_id'); ?>
        <?php echo $form->dropDownList($model, 'support_support_category_id', CHtml::listData(site_support_category::model()->findAll(), 'support_category_id', 'support_category_title'), array('prompt' => 'Please Select Category')); ?>
        <?php //echo $form->error($model, 'support_support_category_id');  ?>
    </div>

    <?php echo $form->labelEx($model, 'support_name'); ?>
    <?php echo $form->textField($model, 'support_name', array('size' => 60, 'maxlength' => 100)); ?>
    <?php //echo $form->error($model,'support_name'); ?>

    <?php echo $form->labelEx($model, 'support_nick'); ?>
    <?php echo $form->textField($model, 'support_nick', array('size' => 50, 'maxlength' => 50)); ?>
    <?php //echo $form->error($model,'support_nick'); ?>

    <?php echo $form->labelEx($model, 'support_phone'); ?>
    <?php echo $form->textField($model, 'support_phone', array('size' => 50, 'maxlength' => 50)); ?>
    <?php //echo $form->error($model,'support_phone');  ?>

    <div class="input_group">
        <?php echo $form->labelEx($model, 'support_is_active'); ?>
        <?php echo $form->radioButtonList($model, 'support_is_active', array('1' => 'Ya', '0' => 'Tidak'), array('size' => 1, 'maxlength' => 1, 'labelOptions' => array('style' => 'display:inline; font-weight:normal;'))); ?>
        <?php //echo $form->error($model,'support_is_active');  ?>
    </div>

    <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span><?php echo ($model->isNewRecord) ? 'Create' : 'Save'; ?></span></button>

    <?php $this->endWidget(); ?>

</div>
<!-- form -->